<?php

namespace app\api\controller\v1\notice;

use app\Request;
use app\services\notice\UserNoticeServices;

class UserNoticeController
{
    /**
     * @var UserNoticeServices
     */
    protected $services;

    /**
     * StoreOrderController constructor.
     * @param UserNoticeServices $services
     */
    public function __construct(UserNoticeServices $services)
    {
        $this->services = $services;
    }

    public function list(Request $request)
    {
        return app('json')->successful($this->services->getUserNotice(intval($request->uid())));
    }
}